﻿using System.Windows;
using System.Linq;
using CharacterCreation.Data.Services;
using CharacterCreation.Data.Models;
using CharacterCreation.Data;

namespace CharacterCreation {
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : Application {

        public App() {
            var result = DataContext.GetAll<object>();
            this.Exit += new ExitEventHandler(App_Exit);
        }

        void App_Exit(object sender, ExitEventArgs e) {
            DataContext.ReleaseAll();
        }
    }
}
